// house_pkg/pages/building/index.ts
Page({
  data:{
    size:0,
    points:'',
    type:''
  }
  ,
  onLoad({points}) {
    // console.log(points);
    this.fake(points)
  },
  fake(points){
    const size = Math.floor(Math.random() * 4) +2 
    // console.log(size);
    const type = size>3? '楼栋':'单元'
    this.setData({points,size,type})
  }
})